import yagmail,pytest
import logging
class login():
    def log1(self):
        logging.basicConfig(level=logging.DEBUG,
                            format='%(levelname)s %(message)s %(asctime)s %(filename)s %(loneno)d',
                            filename='jiuxian.log',
                            filemode='w')
if __name__ == '__main__':
    pytest.main([r'C:\Users\30347\PycharmProjects\zhoukao2\conftest.py','-s','--html=baogao.html'])